package com.hnichr.ump.common.talent.library.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hnichr.ump.common.entity.UmpEntity;
import com.mxpioframework.jpa.annotation.Generator;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import java.util.Date;


@Data
@EqualsAndHashCode(callSuper=false)
@MappedSuperclass
public  class Talent extends UmpEntity {
    @Id
    @Generator
    @Column(name = "ID_", updatable = false)
    @Schema(description = "ID")
    private String id;

    /**
     * 删除标识
     */
    @Column(name = "DEL_FLAG_")
    @Schema(description = "删除标识")
    private Boolean delFlag;

    /**
     * 用户id
     */
    @Column(name = "USER_ID_")
    @Schema(description = "用户id")
    private String userId;

    /**
     * 原始创建时间
     */
    @Column(name = "ORGINAL_CREATE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "创建时间")
    private Date orginalCreateTime;

    /**
     * 原始更新时间
     */
    @Column(name = "ORGINAL_UPDATE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "更新时间")
    private Date orginalUpdateTime;

    /**
     * 同步时间
     */
    @Column(name = "SYNC_DATE")
    @Schema(description = "同步时间")
    private String syncDate;
}
